package cn.usian.service.impl;

import cn.usian.pojo.User;
import cn.usian.service.UserService;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public User getUserById(Integer id){
//        if(id == 1){
//            int a = 6/0;
//        }
//        try {
//            Thread.sleep(500);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        System.out.println(Thread.currentThread().getName()+"-----"+new Date());
        return new User(1,"提莫",888);
    }
}
